home *** CD-ROM | disk | FTP | other *** search
- #!/bin/python
-
- """
- ToolGoogleLinks.py
-
- David Janes
- BlogMatrix
- 2004.02.12
- """
-
- import sys
- import urllib
- import Tool
-
- class ToolGoogleLinks(Tool.ToolInterface):
- """
- The interface for your tool. Simply create an instance of this object and Jaeger
- will figure it out.
- """
- def __init__(self):
- Tool.ToolInterface.__init__(self)
-
- def get_label(self, selected):
- return "Google Links"
-
- def invoke(self, selected, operations):
- operations.open_url("http://www.google.com/search?as_rq=" + \
- urllib.quote(selected.url))
-
- #
- # creating it will register it
- #
- ToolGoogleLinks()
-